<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
	</head>
	<body>
<!-- 		账户：<input type="text" name="" id="" value="埜孞你好..." disabled=""/><button type="button">禁用</button><br><br> -->
		账户：<input type="text" name="" id="" value="埜孞你好..." /><button type="button">禁用</button><button type="button">解禁</button><br><br>
		密码；<input type="password" name="" id="" value="aaabbbccc" />
		
		<script type="text/javascript">
			var inp = document.getElementsByTagName("input")[0];
			var btn1 = document.getElementsByTagName("button")[0];
			var btn2 = document.getElementsByTagName("button")[1];
			
			btn1.onclick = function (){
				inp.disabled = 111;
			}
			btn2.onclick = function (){
				// inp.disabled = false;
				// inp.disabled = 0;
				// inp.disabled = "no";
				inp.removeAttribute("disabled");
			}
			
		</script>
	</body>
</html>
